package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Love;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LoveMapper {
    int insert(Love record);

    Love selectByPrimaryKey(Long id);

    List<Love> selectAll();

    Love selectByIdAndType(Love love);

    void updateState(Love love);

    int selectForReadCount(@Param("authorId") Long authorId, @Param("isRead") Boolean isRead);

    void updateIsRead(@Param("authorId") Long authorId, @Param("isRead") Boolean isRead);

    List<Love> selectByAuthorId(Long authorId);
}